package com.ssy.lingxi.platform.manage.api.hystrix.paas;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.feign.paas.CurrencyPAASControllerFeign;
import com.ssy.lingxi.platform.manage.api.model.dto.currency.CurrencyPAASDTO;
import org.springframework.stereotype.Component;

@Component
public class CurrencyPAASControllerFeignFallback implements CurrencyPAASControllerFeign {

    @Override
    public Wrapper<?> add(CurrencyPAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> update(CurrencyPAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> delete(CurrencyPAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> state(CurrencyPAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }
}
